package com.material.operation.services.impl;

import com.material.operation.bean.User;
import com.material.operation.daos.UserDao;
import com.material.operation.services.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author : hongwei.zhang
 * @className : operation - UserServiceImpl
 * @description : 用户业务实现类
 * @date : 2020-11-16 20:46
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public boolean checkUser(User user) {
        return userDao.checkUser(user) == 1 ? true : false;
    }
}
